<!DOCTYPE html>
	
<html>
	<head>
		<meta charset="UTF-8">
		<title>AngularJS双向数据绑定</title>
		<script type="text/javascript" src="../js/angular.min.js" ></script>
	</head>
	<!-- ng-app：是angular编程入口，是模块作用域  -->
	<body ng-app>
			<div>
				<!-- ng-model：模型作用  -->
				属性驱动name:<input type="test" name="name" ng-model="name" /><br />
				视图name:{{name}}<br />
				视图name2(div自带换行):<div ng-bind="name"></div>
			</div>
	</body>
</html>
